package faf.business;

import javax.persistence.EntityManager;

import faf.entities.Answer;

public class AnswerManager  extends BaseManager {
	
	/**
	 * Permet de recuperer un objet Answer à partir de l'id
	 * @param id
	 * @return 
	 */
	public Answer get(long id) {
		EntityManager em = null;
		try {
			em = jpautils.createEntityManger();
			return em.find(Answer.class, id);
		} finally {
			if (em != null) {
				em.close();
			}
		}		
	}
}
